package com.hong.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration
//public class WebMvcConfig implements WebMvcConfigurer {
//
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        // 解决swagger⽆法访问
//        registry.addResourceHandler("/swagger-ui/**")
//                .addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");
//        // 解决swagger的js⽂件⽆法访问
//        registry.addResourceHandler("/webjars/**")
//                .addResourceLocations("classpath:/META-INF/resources/webjars/");
//
//        // 解决swagger无法访问
////        registry.addResourceHandler("/swagger-ui.html")
////                .addResourceLocations("classpath:/META-INF/resources/");
//        // 解决swagger的js文件无法访问
////        registry.addResourceHandler("/webjars/**")
////                .addResourceLocations("classpath:/META-INF/resources/webjars/");
////        registry.addResourceHandler("doc.html")
////                .addResourceLocations("classpath:/META-INF/resources/");
//
//    }
//
//
//}
